import './App.css';
import React from 'react';
import { BrowserRouter, Switch, Route } from 'react-router-dom';
import Home from './components/home';
import ClientList from './components/clientList';
import ClientEdit from './components/clientEdit';

function App() {
  return (
    <BrowserRouter>
      <Switch>
        <Route path="/" exact={true} component={Home} />
        <Route path="/clients" exact={true} component={ClientList} />
        <Route path="/clients/:id" component={ClientEdit} />
      </Switch>
    </BrowserRouter>
  );
}


export default App;
